Template Function cereal::load(Archive&, cv::Mat&)

Function Documentation

template<class Archive, cereal::traits::DisableIf<cereal::traits::is_text_archive<Archive>::value> = cereal::traits::sfinae>
void cereal::load(Archive &ar, cv::Mat &mat)

De-serialise a cv::Mat using cereal.

De-serialise a cv::Mat using cereal, for text archives (JSON specifically).

Supports all types of matrices as well as non-contiguous ones.

Experimental: This specialisation is enabled for text archives (e.g. XML, JSON), and was created to convert the JSON output from the BFM Matlab converter script to a cereal binary model. See the notes of the save() method!

Parameters
  • ar[in] The archive to deserialise from.

  • mat[in] The matrix to deserialise into.

  • ar[in] The archive to deserialise from.

  • mat[in] The matrix to deserialise into.